#include <cstdio>
#include <algorithm>
using namespace std;
int fun(int n){
    return n==1?1:fun(n/2)+1;
}
int main(void){
    int n;
    while(~scanf("%d",&n)){
        printf("%d\n",fun(n));
    }
    return 0;
}